import { defineStore } from 'pinia'

interface imgInfoType {
  imgSrc: string,
  fourCornerInfo: any,
  sliceInfo: any,
  phaseInfo: any,
}

const useImageStore = defineStore('image', {
  state: () => {
    return {
      imgInfo: {}
    }
  },

  actions: {
    setImageInfo(imageId: string, info: imgInfoType) {
      this.imgInfo[imageId] = info
    }
  }
})

export {
  useImageStore
}

